﻿package com.bizmlib.utils
{
	public class TextControllerAdapter extends Object
	{
		private static var __ALL_LOWERCASE:TextControllerAdapter = new TextControllerAdapter(function(text:String):String{return text ? text.toLowerCase() : text;});
		private static var __ALL_UPPERCASE:TextControllerAdapter = new TextControllerAdapter(function(text:String):String{return text ? text.toUpperCase() : text;});
		
		
		private var __adaptMethod:Function;
		
		
		public function TextControllerAdapter(adaptMethod:Function)
		{
			__adaptMethod = adaptMethod;
		}
		
		
		public function get adaptMethod():Function
		{
			return __adaptMethod;
		}
		
		public static function get ALL_LOWERCASE():TextControllerAdapter
		{
			return __ALL_LOWERCASE;
		}
		public static function get ALL_UPPERCASE():TextControllerAdapter
		{
			return __ALL_UPPERCASE;
		}
		
		
		public function toString():String
		{
			return "[TextControllerAdapter	adaptMethod:" + adaptMethod + "]";
		}
	}
}